<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title><?= $title ?></title>
  <? foreach ($styles as $file => $type) echo HTML::style($file, array('media' => $type)), PHP_EOL ?>
  <? foreach ($scripts as $file) echo HTML::script($file), PHP_EOL ?>  
</head>
<body>
    <ul id="menu" class="gradient">
        <h1>Управляй сайтом c B&H</h1>
        <?  
            $controller = Request::$initial->controller();
            foreach ($menu as $item)
            {
                $class = (strpos($item['href'], $controller)) ? "class=\"current\"": "";
                echo "<li><a href=\"{$item['href']}\" $class class=\"gradient\">{$item['name']}</a></li>";                
            }
         ?>        
        <a href="/admin/logout">&rarr; выход</a>
        <a href="/">&rarr; на сайт</a>
     </ul>
    <div id="content">
        <?= $content ?>
    </div>
</body>
</html>
